package com.base.logistics.sf.bean.routes;

import com.base.logistics.sf.bean.Result;
import com.base.logistics.utils.SfGsonBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 * 路由查询响应对象
 * </pre>
 * @since 2021-02-17
 */
public class SearchRoutesResponse implements Serializable {

    /**
     * 顺丰运单号对应的路由详情（列表）
     */
    private List<RouteResp> routeResps;

    public SearchRoutesResponse() {
    }

    public static SearchRoutesResponse fromJson(String json) {
        Result data = SfGsonBuilder.create().fromJson(json, Result.class);
        json = SfGsonBuilder.create().toJson(data.getMsgData());
        return SfGsonBuilder.create().fromJson(json, SearchRoutesResponse.class);
    }

    public List<RouteResp> getRouteResps() {
        return this.routeResps;
    }

    public void setRouteResps(List<RouteResp> routeResps) {
        this.routeResps = routeResps;
    }

}
